package com.lkbaby.chain;

import java.math.BigDecimal;

public class ManagerHandler implements Handler {
	@Override
	public Boolean process(Request request) {
		if (request.getAmount().compareTo(BigDecimal.valueOf(1000)) > 0) {
			System.out.println("ManagerHandler cant process ...");
			// 超过一千交给下一节点处理
			return null;
		}
		System.out.println("ManagerHandler is processing ...");
		return Boolean.TRUE;
	}
}
